package com.darkteam.jhades.cs.message.type;

public enum Head {

	C1((byte) 0xC1),
	C2((byte) 0xC2),
	C3((byte) 0xC3),
	C4((byte) 0xC4);

	private byte type;

	private Head(byte type) {
		this.type = type;
	}

	public byte getType() {
		return type;
	}
	
	public static boolean isHead(byte head) {
		return (head == Head.C1.getType() || head == Head.C2.getType()
				|| head == Head.C3.getType() || head == Head.C4.getType()) ;
	}

}
